//
//  ScanPhotoViewController.h
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/10/27.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "BaseViewController.h"
#import <AVFoundation/AVFoundation.h>

typedef void(^ScanresultBlock)(NSString*);

@interface ScanPhotoViewController : BaseViewController<AVCaptureMetadataOutputObjectsDelegate>

@property (strong,nonatomic)AVCaptureDevice * device;     //捕捉硬件设备
@property (strong,nonatomic)AVCaptureDeviceInput * input; // 外界成像输入配置
@property (strong,nonatomic)AVCaptureMetadataOutput * output; // 成像输出配置，控制台输出
@property (strong,nonatomic)AVCaptureSession * session;       // 捕捉设置
@property (strong,nonatomic)AVCaptureVideoPreviewLayer * prelayer; // 图层布局层
@property(nonatomic,copy)ScanresultBlock resultBlock;
@property(nonatomic,assign)NSInteger Scantype;//进入方式1.为扫描图片进入  2.其他扫描

@end
